-- GENERATED SPELL FOR [Unbound Ethereal] --


function spell0_22244(pUnit, Event) --@Blink,n/a--
pUnit:FullCastSpellOnTarget(38932,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22244', 610, 1)
end

function Sorts_22244(pUnit, Event)
local choix_sorts_22244 = math.random(0, 0)
if choix_sorts_22244 == 0 then
pUnit:RegisterEvent('spell0_22244', 1, 1)
end
end

function mob22244_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22244', math.random(1500, 3000), 1)
end

function mob22244_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22244_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22244_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22244, 1, 'mob22244_Action')
RegisterUnitEvent(22244, 2, 'mob22244_Leave')
RegisterUnitEvent(22244, 3, 'mob22244_Kill')
RegisterUnitEvent(22244, 4, 'mob22244_Die')
